/*
 * Producer.cpp
 *
 *  Created on: May 26, 2011
 *      Author: stud
 */


#include "Thread.h"
#include <stdio.h>
#include "MemoryMaps.h"

using namespace std;

class Producer : public Thread
{

public:
	Producer(ThreadPriority pri = Thread::PRIORITY_NORMAL, string _name = "", MemoryMaps * mapManager = NULL)
			: Thread(pri, _name) {
			_mapManager = mapManager;
		};

	void run()
	{
		while(1) // Declare the periodic actions for the data monitor
		{
			printf("\nMessage from Consumer thread");

			_mapManager->initializeMaps(0);


			sleep(1);

			_mapManager->initializeMaps(1);

			sleep(1);
		}

	};


private:

	MemoryMaps * _mapManager;
};
